#include "cChaine.h"

cChaine::cChaine()
{
    //ctor
    valeur="";
}

cChaine::~cChaine()
{
    //dtor
}

/** @brief operatorstring
  *
  * @todo: document this function
  */
cChaine::operator string()
{
    return valeur;
}

/** @brief operator=
  *
  * @todo: document this function
  */
cChaine & cChaine::operator=(const string& param)
{
    this->valeur=param;
    return *this;
}

/** @brief operator=
  *
  * @todo: document this function
  */
cChaine & cChaine::operator=(const cChaine& param)
{
    this->valeur=param.valeur;
    return *this;
}

/** @brief cChaine
  *
  * @todo: document this function
  */
 cChaine::cChaine(string valeur)
{
    this->valeur=valeur;
}

cChaine::cChaine(char * valeur)
{
    this->valeur=valeur;
}

/** @brief operator==
  *
  * @todo: document this function
  */
bool cChaine::operator==(const cChaine& param)
{
    return (this->valeur==param.valeur);
}

bool cChaine::operator!=(const cChaine& param)
{
    return !(*this==param);
}

cChaine cChaine::operator+(const cChaine& param1)
{
    string nouvellechaine=this->valeur+param1.valeur;
    return nouvellechaine;
}

const char* cChaine::c_str()
{
    return valeur.c_str();
}



